package cn.zz.veggie.model.domain;

import cn.zz.comm.mybaits.types.BaseEntity;
import cn.zz.comm.util.DateUtil;
import lombok.Getter;
import lombok.Setter;

/**
 * 采购统计表(Purchase)实体类
 *
 * @author zhongq
 * @since 2024-06-03 23:40:02
 */
@Getter
@Setter
public class Purchase extends BaseEntity {
	private Integer orderCount;
	private Integer productCount;
	private Long statTime;
	private Integer status;
	private String remark;

	public static Purchase ofStatTime(Long statTime) {
		final Purchase purchase = new Purchase();
		purchase.setStatTime(statTime);
		return purchase;
	}
	public Long calcStatTimeEnd(){
		return statTime + DateUtil.SEC_PER_HAF_DAY;
	}
}